package com.jdym.service.impl;

import com.jdym.entity.Firm;
import com.jdym.mapper.FirmMapper;
import com.jdym.service.FirmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 企业表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class FirmServiceImpl extends ServiceImpl<FirmMapper, Firm> implements FirmService {
    @Autowired
    private FirmMapper firmMapper;
    @Override
    public Firm selectLoginName(String firmName) {
        return firmMapper.selectLoginName(firmName);
    }

    @Override
    public Firm selectLogin(String firmName, String firmPassword) {
        return firmMapper.selectLogin(firmName,firmPassword);
    }
}
